﻿<%@ WebHandler Language="C#" Class="Handler" %>

using System;
using System.Web;
using System.Xml.Linq;
using System.Linq;
public class Handler : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.Charset = "utf-8";
        context.Response.ContentType = "application/text";
        //context.Response.ContentType = "application/json";
        int id = int.Parse(context.Request.Form["id"]);
        string pids = context.Request.Form["pids"].ToString();
        string mids = context.Request.Form["mids"].ToString();

        bool r = BarberShop.BLL.MovePlayListRelationBLL.SavePalyList(id,pids,mids);
        string rString = r == true ? "1" : "0";
        context.Response.Write(rString);
        context.Response.End();
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}